Skip to content

Bootstrap Rust workspace, portable builds, and attributed ArtCraft tooling - #2

Merged
denisvmedia merged 1 commit into
mainfrom
bootstrap/artcraft-workspace
Nov 27, 2026
Merged

denisvmedia merged 1 commit into
mainfrom
bootstrap/artcraft-workspace

Conversation

@denisvmedia

@denisvmedia denisvmedia commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Why

ArcForge currently has a product specification and an MIT repository, but no application workspace or build path. This PR establishes a Rust bootstrap using selected, attributed ArtCraft infrastructure so implementation of the archive manager can begin against explicit architectural and build constraints.

Related to #1. This is a bootstrap contribution; it does not complete the archive-editing milestone or close the epic.

What changes

  • Add a Rust 2024 workspace with a pinned Rust 1.100.1 toolchain and committed lockfile: a UI-independent core, egui presentation crate, thin desktop entry point, standalone headless CLI, and xtask tooling.
  • Add one shared command catalog and typed dispatch. Help, version, command discovery, and JSON capability diagnostics work. Archive commands report that they are planned; no provider or archive-format support is claimed.
  • Add an empty three-pane desktop shell with disabled archive actions, theme controls, an inspector toggle, and command discovery. GUI arguments that only request version/help exit before desktop initialization.
  • Add cargo xtask check, layers, notices, build, test, and package. Check dependency directions and transitive GUI contamination of the core/CLI, including build/dev/conditional edges. New workspace crates require registration.
  • Add native CI jobs for Windows, macOS, and Linux on x86-64 and ARM64. Each uses the same project checks and packages an unsigned development bundle. Version tags prepare a draft release after builds and checksum verification.
  • Add deterministic archive layout, executable architecture validation, SHA-256 sidecars, full source/dependency/font notices, and an offline freshness gate tied to the lockfile and notice inputs. macOS notices are also inside the .app.
  • Add contributor instructions, architecture/build documentation, and the exact ArtCraft reuse inventory.
flowchart TD
    Desktop["Desktop entry point"] --> UI["egui presentation"]
    UI --> Core["Shared core and command catalog"]
    CLI["Headless CLI"] --> Core
    Checks["xtask dependency checks"] -.-> Core
Loading

ArtCraft reuse and licenses

Pinned references:

  • PhotoCraft: 71f0d7483eb9ec56f483a2a4dbd13c2e6a0f65af.
  • Craft Anything: e7c2c36c62f798175d7b990e5c9d1580398dff82.

The upstream code offers MIT OR Apache-2.0. This PR selects MIT for the copied PhotoCraft Cargo-environment helper and the adapted dependency-layer checker. Original copyright notices and full MIT texts are retained. The crates/ + apps/ + xtask layout, shared-command approach, and study/build/compare workflow are architectural inspiration. No Craft Anything application implementation, OpenZip source, ArtCraft branding, raven icon, or ArtCraft assets are copied.

See docs/artcraft-reuse.md, THIRD_PARTY_NOTICES.md, and licenses/ for source paths, revisions, changes, dependency terms, and embedded font notices.

Verification

Verified locally on Linux x86-64:

  • cargo xtask check: formatting, dependency layers, notice freshness, Clippy with warnings denied, all workspace tests, and debug builds passed. 26 tests passed (3 core, 6 CLI, 2 desktop argument tests, 15 tooling tests).
  • Release build and cargo xtask package --target x86_64-unknown-linux-gnu passed with the pinned toolchain and lockfile.
  • Extracted the generated tarball, verified its SHA-256, ran both executable version commands plus CLI JSON command discovery and diagnostics, and verified planned extraction still exits with code 3.
  • Checked required source/dependency/font notices in the archive and validated notice inputs after regeneration. Source and notice line endings are pinned to LF for Windows checkout parity.
  • The remote Git tree matches the reviewed local index exactly.

The local bundle is arcforge-0.1.0-dev-x86_64-unknown-linux-gnu.tar.gz (5,371,553 bytes), SHA-256 6d6522cb769a956238c7b45cce2ac0884f819011648997fce42789fcd0fe7dd1. It is a local validation artifact, not a published release. CI builds its own artifacts.

Native CI: all six jobs passed in run #1 for commit 445f02a1fed8fde502af985a307225ec30366a9e: macOS, Windows, and Linux on x86-64 and ARM64. Each job completed the workspace checks, tests, release build, packaging, executable smoke tests, and artifact upload. All six development bundles are available in the run's artifacts (14-day retention).

Interactive GUI behavior, accessibility, native drag-and-drop, archive features, and production installation remain unverified by these command-line/build checks.

Current limitations

Archive reading, extraction, creation, editing, previews, and native desktop integrations remain work in #1. egui/eframe is the initial toolkit; this PR does not complete the cross-platform feasibility and visual-fidelity gates. Native command smoke tests do not establish interactive GUI behavior, accessibility, drag-and-drop, or Wayland/X11 parity.

Development bundles are unsigned portable archives. Production DMG/installers/AppImage/distribution packages, signing/notarization, file associations, upgrades, and minimum supported OS/runtime baselines remain future work. The Windows bootstrap desktop executable still uses the console subsystem. No release tag is created or release published by this PR.

Add shared core, headless CLI, egui desktop shell, portable xtask commands,
six-target native CI, development packaging, and verified source/dependency
notices. Archive operations remain planned in #1.
@denisvmedia
denisvmedia merged commit 0c719fc into main Nov 27, 2026
6 checks passed
@denisvmedia
denisvmedia deleted the bootstrap/artcraft-workspace branch November 27, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant